package com.fs.sw.config;

import com.fs.sw.qualifier.T1Interface;
import com.fs.sw.qualifier.TInterface;
import com.fs.sw.qualifier.impl.T2impl;
import com.fs.sw.qualifier.impl.Timpl;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TConfig {

    @Bean
    @ConditionalOnMissingBean(name = "t")
    public TInterface t(){
//        Timpl timpl = new Timpl();
        T2impl timpl = new T2impl();
        return timpl;

    }
}
